package com.threeonemeeting.list;

import java.util.ArrayList;
import java.util.List;

import com.threeonemeeting.model.FullMeetingInfo;

public class FullMeetingInfoList {

	public List<FullMeetingInfo> listFullMeetingInfo = new ArrayList<FullMeetingInfo>();

	public void addFullMeetingInfo(FullMeetingInfo info) {
		if (info == null)
			return;

		listFullMeetingInfo.add(info);
	}

	public int size() {
		return listFullMeetingInfo.size();
	}

	public FullMeetingInfo get(int nLocation) {
		return listFullMeetingInfo.get(nLocation);
	}

	public FullMeetingInfo getFullMeetingInfo(int nId) {
		for (int i = 0; i < listFullMeetingInfo.size(); i++) {
			FullMeetingInfo info = listFullMeetingInfo.get(i);
			if (info == null)
				continue;

			if (info.nId == nId)
				return info;
		}

		return null;
	}
}
